# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding field 'Course.show_students_by_name'
        db.add_column('course_course', 'show_students_by_name',
                      self.gf('django.db.models.fields.BooleanField')(default=True),
                      keep_default=False)

        # Adding field 'Course.allow_student_avatar_change'
        db.add_column('course_course', 'allow_student_avatar_change',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)

        # Adding field 'Course.show_student_avatars'
        db.add_column('course_course', 'show_student_avatars',
                      self.gf('django.db.models.fields.BooleanField')(default=True),
                      keep_default=False)

        # Adding field 'Course.allow_students_to_email_others'
        db.add_column('course_course', 'allow_students_to_email_others',
                      self.gf('django.db.models.fields.BooleanField')(default=False),
                      keep_default=False)

        # Adding field 'Course.allow_student_name_and_email_change'
        db.add_column('course_course', 'allow_student_name_and_email_change',
                      self.gf('django.db.models.fields.BooleanField')(default=True),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'Course.show_students_by_name'
        db.delete_column('course_course', 'show_students_by_name')

        # Deleting field 'Course.allow_student_avatar_change'
        db.delete_column('course_course', 'allow_student_avatar_change')

        # Deleting field 'Course.show_student_avatars'
        db.delete_column('course_course', 'show_student_avatars')

        # Deleting field 'Course.allow_students_to_email_others'
        db.delete_column('course_course', 'allow_students_to_email_others')

        # Deleting field 'Course.allow_student_name_and_email_change'
        db.delete_column('course_course', 'allow_student_name_and_email_change')


    models = {
        'course.course': {
            'Meta': {'object_name': 'Course'},
            'accessible_until': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'activity_title': ('django.db.models.fields.CharField', [], {'default': "'Activity'", 'max_length': '50'}),
            'activity_title_plural': ('django.db.models.fields.CharField', [], {'default': "'Activities'", 'max_length': '50'}),
            'allow_student_avatar_change': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'allow_student_name_and_email_change': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'allow_students_to_email_others': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'anonymous_grading_default': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'class_roster_title': ('django.db.models.fields.CharField', [], {'default': "'Class'", 'max_length': '50'}),
            'course_css': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'course_description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'course_favicon': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'course_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'course_js': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'course_subtitle': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'course_title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'default_submissions_allowed': ('django.db.models.fields.PositiveIntegerField', [], {'default': '10'}),
            'default_time_due': ('django.db.models.fields.TimeField', [], {'default': 'datetime.time(23, 59, 59)'}),
            'display_grade_metrics': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'event_calendar_percent': ('django.db.models.fields.FloatField', [], {'default': '66.66'}),
            'event_calendar_show_time_due': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'forum': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'courses'", 'null': 'True', 'to': "orm['forum.Forum']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'show_class_roster': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'show_student_avatars': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'show_students_by_name': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'show_until': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
        },
        'forum.forum': {
            'Meta': {'object_name': 'Forum'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
        }
    }

    complete_apps = ['course']